/**
 * Created by Administrator on 2017/4/5.
 */
import React,{Component} from 'react'
import {AppRegistry,
StyleSheet,
Text,
Image,
ListView,
View,} from 'react-native';

class MyListView extends Component{
    constructor(props){
        super(props);
        var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
        this.state = {
            dataSource: ds.cloneWithRows(['row 1', 'row 2']),
        };
    }

    render(){
        return  <ListView
            dataSource={this.state.dataSource}
            renderRow={(rowData) => <Text>{rowData}</Text>}>

        </ListView>
    }
}

module.exports  = MyListView;
